#ifndef CUSTOMER_H
#define CUSTOMER_H

class Customer
{
	private:
	public:
		//Find the shortest line for a group to get in to of a clerk or ticket taker. line[] contains the line length for each clerk or taker, lineState contains whether the clerk or taker is on break, and arraysize is the number of clerks or takers.
		int find_shortest_line(unsigned int line[], unsigned int linesState[],int arraysize);
		//Divides the customers into random groups of 1 to 5 members
		void divideIntoGroups();
		//initializes the customers in a group, creating a new thread for each
		void generatCustomer();
		//Runs a single head customer. cus is its unique id.
		void headCustomer_start(int cus);
		//Runs a single non-head customer. cus is its unique id.
		void regularCustomer_startWork(int cus);
};

#endif //CUSTOMER_H
